home *** CD-ROM | disk | FTP | other *** search
- Path: news.zeitgeist.net!usenet
- From: mwm@contessa.phone.net (Mike Meyer)
- Newsgroups: comp.sys.amiga.datacomm,comp.sys.amiga.advocacy,comp.sys.amiga.misc,comp.sys.amiga.networking
- Subject: Re: New Press Release!
- Date: Sat, 23 Mar 1996 14:29:53 PST
- Organization: Missionaria Phonibalonica
- Distribution: world
- Message-ID: <19960323.75240E0.D624@contessa.phone.net>
- References: <4iofm6$e4j@serpens.rhein.de> <DoLC38.2G4@info.uucp> <4ir19b$mml@serpens.rhein.de> <oj6wx4dne22.fsf@hpsrk.fc.hp.com> <4ivdqe$62a@serpens.rhein.de>
- NNTP-Posting-Host: contessa.phone.net
- X-NewsReader: Amiga Yarn 3.9, 1995/05/09 10:42:03
-
- In <4ivdqe$62a@serpens.rhein.de>, mlelstv@serpens.rhein.de (Michael van Elst) wrote:
- > koren@hpsrk.fc.hp.com (Steve Koren) writes:
- > >> Sure, and when you need more RAM than you have then everything
- > >> crawls. VM is just efficient when programs allocate RAM that they
- > >> do not need.
- > >Err, no.
- > Err, yes. If you use more RAM than you have you start thrashing.
-
- Err, no. Using more RAM than you have is a necessary but precondition
- for thrashing, but it's not sufficient.
-
- For instance, if I'm doing intense array work and spending several
- seconds on each row of a large array, then a good VM system will cause
- me to page in a raw when I start on it, paging out a row I've
- finished. This results in using more RAM than I have and still not
- thrashing. This is an extreme example of a property called "locality
- of reference", meaning that most references to memory - whether code,
- stack or data - tend to occur close to the previous references. In one
- study done at bell labs for stack usage, they noted that, exception of
- the recursive descent C compiler, every program on the Unix system
- they were working on made 96% of it's references to the top 4K of
- stack.
-
- Demand paging trades off a bit of performance near the edge of
- non-paged systems capabilities - you start paging before you run out
- of RAM - for not failing hard until things get much worse than that.
- In general, it's considered a win. Systems designed to handle
- processes that can't afford the performance degradation due to demand
- paging usually have hooks to lock those processes in memory.
-
- <mike
-